<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>插件列表</title>
	<Pintuer />
</head>
<body>
	<div class="container-layout">
		<!-- 导航位置 -->
		<div class="text-small text-gray height-big">
			<div class="float-left height">
				<span class="icon-home"></span>
				当前位置： 首页 -> 扩展管理 -> 插件列表
			</div>
			<div class="float-right">
				<div class="radius-rounded height">
					<button type="button" onClick="location.href='{?:U('index')?}'" class="button radius-none bg-sub">
						<i class="icon-th-list"></i>
						插件列表
					</button>
					<button type="button" onClick="location.href='{?:U('create')?}'" class="button radius-none">
						<i class="icon-edit"></i>
						创建插件
					</button>
					<button type="button" onClick="location.href='#'" class="button bg-main radius-none">
						<i class="icon-edit"></i>
						导入插件
					</button>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
		<hr />
		<!-- 导航位置 End -->
		<table class="table table-bordered table-hover table-condensed table-responsive">
			<tr class="bg">
				<td>名 称</td>
				<td width="150">标 识</td>
				<td>描 述</td>
				<td>安 装</td>
				<td>作 者</td>
				<td>版 本</td>
				<td width="300">操 作</td>
			</tr>
			<volist name="data" id="vo">
				<tr>
					<td>{?$vo.title?}</td>
					<td>{?$vo.name?}</td>
					<td>{?$vo.description?}</td>
					<td>{?$vo.status|int_to_status?}</td>
					<td>{?$vo.author?}</td>
					<td>{?$vo.version?}</td>
					<td>
						<eq name="vo.status" value="1">
							<a href="{?:U('config', array('id'=>$vo['id']))?}">
								<i class="icon-gear (alias)"></i>
								配置
							</a> |
							<else/>
						</eq>
						<eq name="vo.status" value="99">
							<a href="{?:U('install',array('addon_name' => $vo['name']))?}">
								<i class="icon-dashboard (alias)"></i>
								安装
							</a> |
							<a href="{?:U('DelAddons',array('plugin_name'=>$vo['name']) )?}">
								<i class="icon-trash-o"></i>
								删除
							</a> |
							<else/>
							<eq name="vo.status" value="1">
								<a  href="{?:U('disable',array('id'=>$vo['id']))?}">
									<i class="icon-unlock-alt"></i>
									禁用
								</a> |
								<else/>
								<a href="{?:U('enable',array('id'=>$vo['id']))?}">
									<i class="icon-unlock"></i>
									启用
								</a> |
							</eq>
							<a href="{?:U('uninstall',array('id'=>$vo['id']) )?}">
								<i class="icon-wrench"></i>
								卸载
							</a> |
						</eq>
						<a href="{?:U('pluginExportHandle',array('plugin_name' => $vo['name'],'version'=> $vo['version']))?}">
							<i class="icon-print"></i>
							导出
						</a>
					</td>
				</tr>
			</volist>
		</table>
	</div>
	<div class="container-layout">
		<div class="bg border padding margin-large-top">{?$field.install?}</div>
		<table class="table table-bordered table-hover table-condensed table-responsive">
			<tr>
				<td>插件名</td>
				<td>插件标识</td>
				<td>作 者</td>
				<td>版 本</td>
				<td>描 述</td>
				<td>操 作</td>
			</tr>
			<volist name="install" id="vo">
				<tr>
					<td>{?$vo.title?}</td>
					<td>{?$vo.name?}</td>
					<td>{?$vo.author?}</td>
					<td>{?$vo.version?}</td>
					<td>{?$vo.description?}</td>
					<td width="300">
						<a href="{?$vo.url?}">
							 <i class="icon-credit-card"></i>
							控制面板
						</a>
					</td>
				</tr>
			</volist>
		</table>
	</div>
</body>
</html>